package com.thenie.chat.vo;

import com.thenie.chat.validator.IsEmail;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Description 注册输入参数
 * @Author thenie
 * @Data 2022/5/19 10:35
 */
@Data
public class RegisterVo {

    @NotNull
    @Length(min = 4,max = 12)
    private String username;

    @NotNull
    @Length(min = 32)
    private String password;

    @NotNull
    @IsEmail //自定义注解，判断邮箱格式是否正确
    private String email;
}
